package org.cloudnote.service;

import org.cloudnote.dao.NoteDao;
import org.cloudnote.util.NoteResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class RecycleServiceImpl implements RecycleService {
    @Autowired
    private NoteDao noteDao;
    @Override
    public NoteResult recycleNote(String noteId) {
        noteDao.recycle(noteId);
        NoteResult result = new NoteResult();
        result.setStatus(0);
        result.setMsg("将笔记放入回收站成功");
        return result;
    }
}
